/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

/**
 * <p>Project: jse2303 - T2</p>
 * <p>Powered by webrx On 2023-07-26 09:12:22</p>
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class T2 {
    public static void main(String[] args) {
        //java 调用外程序命令
        try {
            //Runtime.getRuntime().exec("cmd /k start c.jpg");

            //Runtime.getRuntime().exec("cmd/ k start http://www.taobao.com");

            //notepad xxx.java
            //Runtime.getRuntime().exec("cmd /k notepad D:\\0703\\javase\\jse2303\\jse2303\\ch11\\src\\cn\\webrx\\Thread1.java");
            //Runtime.getRuntime().exec("cmd /k D:\\soft\\es\\EditPlus.exe D:\\0703\\javase\\jse2303\\jse2303\\ch11\\src\\cn\\webrx\\Thread1.java");

            //java 执行关机程序
            //Runtime.getRuntime().exec("cmd /k shutdown /s 0");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
